home *** CD-ROM | disk | FTP | other *** search
-
- ; GetPixel32Z(chunky:a0:PTR TO chunky,x:d0:LONG,y:d1:LONG)(L,F)
-
- machine mc68020
- fpu 1
-
- xdef _GetPixel32Z
-
- _GetPixel32Z
- cmpa.l #0,a0
- beq.s .out
- tst.l d0
- blt.s .out
- tst.l d1
- blt.s .out
- cmp.l (a0),d0
- bge.s .out
- cmp.l (4,a0),d1
- bge.s .out
-
- muls.l (a0),d1
- add.l d0,d1
- lsl.l #2,d1 ; d1 now contains position in buffer
- movea.l (8,a0),a1
- move.l (a1,d1.l),d0
- movea.l (12,a0),a1
- fmove.s (a1,d1.l),fp0
- rts
- .out moveq #-1,d0
- fmove.s #0,fp0
- rts
-